package menu

import (
	"news_for_deepseek_interface/controller"
	menuService "news_for_deepseek_interface/service/admin/system/menu"

	"github.com/gin-gonic/gin"
)

func All(c *gin.Context) {

	// 获取全部菜单
	menuList, err := menuService.GetAllMenu()
	if err != nil {
		controller.Fail(c, controller.BusinessError, err.Error())
		return
	}

	controller.Success(c, menuList)
}
